package com.godtree.dao;

import com.godtree.model.RankData;
import com.godtree.mybatisplus.SuperMapper;
import java.util.Collection;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 排名数据 Mapper 接口
 * </p>
 *
 * @author lisicheng
 * @since 2022-07-18
 */
public interface RankDataMapper extends SuperMapper<RankData> {

  /**
   * 更新默认排名分数
   *
   * @param ranksId
   * @return
   */
  int updateDefaultRankScore(@Param("ranksId") String ranksId);

  int saveOrUpdateBatch(@Param("list") Collection<RankData> rankData);
}
